<?php
    // +----------------------------------------------------------------------
    // | 海豚PHP框架 [ DolphinPHP ]
    // +----------------------------------------------------------------------
    // | 版权所有 2016~2017 河源市卓锐科技有限公司 [ http://www.zrthink.com ]
    // +----------------------------------------------------------------------
    // | 官方网站: http://dolphinphp.com
    // +----------------------------------------------------------------------
    // | 开源协议 ( http://www.apache.org/licenses/LICENSE-2.0 )
    // +----------------------------------------------------------------------

    namespace app\cms\home;

    use app\store\model\WalletProductModel;


    /**
     * 前台首页控制器
     *
     * @package app\cms\admin
     */
    class Www extends Common
    {

        /**
         * 首页
         *
         * @author 蔡伟明 <314013107@qq.com>
         * @return mixed
         */
        public function index()
        {


            $goods_list         = WalletProductModel::lists('',4);
            $data['goods_list'] = $goods_list;

            return $this->assign('data',$data)->fetch(); // 渲染模板
        }

        /**
         * 公司简介
         */
        public function company()
        {

            $data = [];
            return $this->assign('data',$data)->fetch(); // 渲染模板
        }

        public function honor()
        {

            $data['honor'] = [
                ['img' => 'http://timeappthree.ssjtime.cn/a65233b74a97a363f3c5da10721ad6f6.jpg?v=353038','title'=>''],
                ['img' => 'http://timeappthree.ssjtime.cn/d2bfb6635f483382d933275e84152c10.jpg?v=284661','title'=>''],
                ['img' => 'http://timeappthree.ssjtime.cn/7d1f00e10b6916fcb492ab9ab0dccb20.jpg?v=883945','title'=>''],
            ];
            return $this->assign('data',$data)->fetch(); // 渲染模板
        }

        public function product()
        {
        }

        public function dynamic()
        {
        }

        public function contactme()
        {
        }

        //        public function head_footer()
        //        {
        //
        //            $data['head']   = $head;
        //            $data['footer'] = $footer;
        //            $this->assign('data',$data);
        //        }
    }